<!DOCTYPE html>
<html lang="en" dir="ltr">
  <head>
    <meta charset="UTF-8" />
    <title>Range - Basic</title>
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"
    />
    <link href="../../../../../css/ionic.bundle.css" rel="stylesheet" />
    <link href="../../../../../scripts/testing/styles.css" rel="stylesheet" />
    <script src="../../../../../scripts/testing/scripts.js"></script>
    <script nomodule src="../../../../../dist/ionic/ionic.js"></script>
    <script type="module" src="../../../../../dist/ionic/ionic.esm.js"></script>
    <style>
      .grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(250px, 1fr));
        grid-row-gap: 20px;
        grid-column-gap: 20px;
      }
      h2 {
        font-size: 12px;
        font-weight: normal;

        color: #6f7378;

        margin-top: 10px;
      }
      @media screen and (max-width: 800px) {
        .grid {
          grid-template-columns: 1fr;
          padding: 0;
        }
      }
    </style>
  </head>

  <body>
    <ion-app>
      <ion-header>
        <ion-toolbar>
          <ion-title>Range - Basic</ion-title>
        </ion-toolbar>
      </ion-header>

      <ion-content id="content" class="ion-padding">
        <div class="grid">
          <div class="grid-item">
            <h2>Default</h2>
            <ion-range class="default" value="50">
              <span slot="label">Temperature</span>
            </ion-range>
          </div>
          <div class="grid-item">
            <h2>Dual Knobs</h2>
            <ion-range dual-knobs="true" class="dual-knobs">
              <span slot="label">Temperature</span>
            </ion-range>
          </div>
          <div class="grid-item">
            <h2>Ticks with Step</h2>
            <ion-range class="ticks" step="10" snaps="true" value="50">
              <span slot="label">Temperature</span>
            </ion-range>
          </div>
          <div class="grid-item">
            <h2>Pin</h2>
            <ion-range class="pin" pin="true">
              <span slot="label">Temperature</span>
            </ion-range>
          </div>
        </div>
      </ion-content>
    </ion-app>

    <script>
      const dualKnobs = document.querySelector('.dual-knobs');
      dualKnobs.value = {
        lower: '10',
        upper: '90',
      };
    </script>
  </body>
</html>
